package com.sptpc.drink.dao;

import com.sptpc.drink.pojo.Drink;

import java.util.List;

public interface DrinkMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Drink record);

    int insertSelective(Drink record);

    Drink selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Drink record);

    int updateByPrimaryKey(Drink record);
    List<Drink> selectAll();
    //查询drink的信息，包含此drink所属于的category信息
    List<Drink> selectDrinkAndCategory();
}